package com.wcs.exam.controller.auth.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * Auth-订单信息表-响应对象
 * </p>
 *
 * @author wcs
 * @since 2024-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Auth-订单信息表-支付-响应对象")
public class AuthOrderInfoResultResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "交易流水号")
    private Long tradeSerialNo;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "流水号")
    private Long serialNumber;

    @Schema(description = "商品类型")
    private Integer goodsType;

    @Schema(description = "商品ID")
    private Long goodsId;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "划线价")
    private BigDecimal linePrice;

    @Schema(description = "实付金额")
    private BigDecimal paidAmount;

    @Schema(description = "订单金额")
    private BigDecimal orderAmount;

    @Schema(description = "订单状态：1待支付，2成功支付，3支付失败，4已关闭，5已退款, 6订单解绑")
    private Integer orderStatus;

    @Schema(description = "支付方式(1：微信支付、2：支付宝支付)")
    private Integer payWay;

    @Schema(description = "支付类型(1：微信扫码、2：微信H5、3：微信APP、4：小程序支付、5：微信JSAPI、6：支付宝扫码、7：支付宝H5、8：支付宝APP)")
    private Integer payType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "支付时间")
    private LocalDateTime payTime;

    @Schema(description = "客户备注")
    private String remarkCus;
}
